 import {
   get,
   post
 } from '../utils/http'
 import env from '../config/env'


 export function list(params) {
   return get(`${env.API_URL}/blog/blogInfo/list`, params)
 }


 export function view(id) {
   return get(`${env.API_URL}/blog/blogInfo/view`, {
     id
   })
 }

 export function like(blogId) {
   return post(`${env.API_URL}/blog/blogInteractive/like`, {
     blogId
   }, {}, true)
 }


 export function archive() {
   return get(`${env.API_URL}/blog/blogInfo/archive`)
 }

 export function listInteractive(type) {
   return get(`${env.API_URL}/blog/blogInfo/listInteractive`, {
     type
   })
 }

 export function option(params) {
   return post(`${env.API_URL}/blog/blogInteractive/option`, params, {}, true)
 }